<template include="./view/htm/my_shop.template.htm">
	<slot name="my_body">
		<ul class="list-unstyled">
			<?php foreach ($shoplist as $sid => $_shop){ ?>
				<li class="media thread tap">
					<img class="avatar-3 ml-1 mt-1 mr-3" src="<?php echo $_shop['logo'] ?>">
					<div class="media-body">
						<div class="subject break-all d-flex">
							<a class="h5" href="<?php echo url("shop-$_shop[sid]");?>"><?php echo $_shop['name'];?></a>
						</div>
						<div class="intro text-secondary">
							<?php if ($_shop['review'] == 0) {
								echo '（等待审核）';
							} else { ?>
								<a href="<?php echo url("shopadmin-index-$_shop[sid]");?>">后台管理</a>
							<?php } ?>
						</div>
					</div>
				</li>
			<?php } ?>
		</ul>
	</slot>
</template>

<script>
$('a[data-active="my-shop-list"]').addClass('active');
</script>